cmake_minimum_required(VERSION 3.7)
project(RSA)

set(CMAKE_CXX_STANDARD 11)
include_directories(./)
set(SOURCE_FILES main.cpp BigInt.cpp Key.cpp RSA.cpp StringTrans.cpp PrimeGen.cpp)
set(LIBRARY_FILES  BigInt.cpp Key.cpp RSA.cpp StringTrans.cpp PrimeGen.cpp)
add_executable(RSA ${SOURCE_FILES})
add_library(rsa_shared SHARED ${LIBRARY_FILES})
add_library(rsa_static STATIC ${LIBRARY_FILES})